//
//  BLSecretField.h
//  ITC_iOS
//
//  Created by iBenz on 2018/9/2.
//  Copyright © 2018年 Benz.L. All rights reserved.
//

#import <UIKit/UIKit.h>
@class BLSecretField;

typedef void(^SecretFieldValueDidChanged)(BLSecretField *secretField, NSString *value);

@interface BLSecretField : UIView
@property(nonatomic, assign)      UIKeyboardType   keyboardType;
@property(nonatomic, assign)      UIReturnKeyType  returnKeyType;
@property(nonatomic,getter=isSecureTextEntry) BOOL secureTextEntry;

@property(nonatomic) SecretFieldValueDidChanged valueDidChange;
@property(nonatomic) CGSize fieldSize;              //default is {35.0, 35.0}
@property(nonatomic, assign) CGFloat fieldSpace;    //default is 4.0
@property(nonatomic, assign) NSInteger secretCount; //default is 6
@property(nonatomic, strong) NSString *availableText;//合法的字符，nil表示不指定
@property(nonatomic, strong) NSString *value;

- (void)clean;

@end
